package wh.jf.singleton;

// 简单单例实现
public class SingleObject {
    private static SingleObject instance = new SingleObject();
    private SingleObject(){}

    public static SingleObject getInstance() {
        return instance;
    }
    public void showMessage() {
        System.out.println("Hello, world!");
    }
}
